package com.qczl.vehicle.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfiguration {

    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("汽车租赁管理系统接口文档")
                        .version("1.0")
                        .description("汽车租赁管理系统-车辆管理接口文档")
                        .contact(new Contact()
                                .name("钟城明")
                                .url("https://gitee.com/zcm41228")));
    }
}
